import request from '~/utils/request';

//分页获取留言和回复 - 管理端
export function getMsgChatList(data) {
    return request({
        url: '/Message/GetMsgChatList',
        method: 'post',
        data,
    });
}

//分页获取合伙人/商家留言 - 管理端
export function getStaffMsgList(data) {
    return request({
        url: '/Message/GetStaffMsgList',
        method: 'post',
        data,
    });
}

//获取留言内容
export function getMsgItemList(data) {
    return request({
        url: '/Message/GetMsgItemList',
        method: 'post',
        data,
    });
}

//保存一条留言内容
export function saveMsgChat(data) {
    return request({
        url: '/Message/SaveMsgChat',
        method: 'post',
        data,
    });
}

//为查看留言数量
export function getNoViewMsgChatCount() {
    return request({
        url: '/Message/GetNoViewMsgChatCount',
        method: 'post',
    });
}

//消息列表
export function getMsgList(data) {
    return request({
        url: '/Message/GetMsgList',
        method: 'post',
        data,
    });
}

//未查看消息数量
export function getUnreadMsgCount() {
    return request({
        url: '/Message/GetUnreadMsgCount',
        method: 'post',
    });
}

//分类的未查看消息数量
export function getUnreadMsgCountByClass(data) {
    return request({
        url: '/Message/GetUnreadMsgCountByClass',
        method: 'post',
        data,
    });
}

//消息内容
export function getMsgInfo(data) {
    return request({
        url: '/Message/GetMsgInfo',
        method: 'post',
        data,
    });
}

//保存消息
export function saveMsgInfo(data) {
    return request({
        url: '/Message/SaveMsgInfo',
        method: 'post',
        data,
    });
}

//业主获取车位的咨询对话
export function getParkingMsgChat(data) {
    return request({
        url: '/Message/GetParkingMsgChat',
        method: 'post',
        data,
    });
}
//业主获取车位的咨询对话
export function getBuildingMsgChat(data) {
    return request({
        url: '/Message/GetBuildingMsgChat',
        method: 'post',
        data,
    });
}
//业主提交车位咨询留言
export function saveParkingMsgChat(data) {
    return request({
        url: '/Message/SaveParkingMsgChat',
        method: 'post',
        data,
    });
}
//业主提交车位咨询留言
export function saveBuildingMsgChat(data) {
    return request({
        url: '/Message/SaveBuildingMsgChat',
        method: 'post',
        data,
    });
}
//业主咨询列表
export function getOwnerParkingChatList(data) {
    return request({
        url: '/Message/GetOwnerParkingChatList',
        method: 'post',
        data,
    });
}
//业主楼盘咨询列表
export function getOwnerBuildingChatList(data) {
    return request({
        url: '/Message/GetOwnerBuildingChatList',
        method: 'post',
        data,
    });
}
//开发商咨询列表
export function getCompanyParkingChatList(data) {
    return request({
        url: '/Message/GetCompanyParkingChatList',
        method: 'post',
        data,
    });
}
//开发商楼盘咨询列表
export function getCompanyBuildingChatList(data) {
    return request({
        url: '/Message/GetCompanyBuildingChatList',
        method: 'post',
        data,
    });
}